#pragma once
#include "mobileform.h"
#include "MapTools.h"

namespace pac_man_cll
{
	ref class PacManForm :
	public MobileForm
	{
	public:
		PacManForm(void);
		void DrawForm(System::Drawing::Graphics^ g);
		System::Drawing::SolidBrush^ mainPac, ^sbfond;
		int lowerMouth, upperMouth, totalPoint;
		bool mouthOpen, isSpecial, hasChanged;
		bool IsOneCase(void);
		bool IsEntityMove(void);
		MapDirection currentDir;
		MapDirection proposedDirection;
		array <int, 2>^ pacmanMap;
	private:
		bool EntityMoveTop(void);
		bool EntityMoveRight(void);
		bool EntityMoveBottom(void);
		bool EntityMoveLeft(void);
	public:
		void EntityMoveHub(MapDirection);
	};

}